package com.ddz.library.packageManager.activity

import android.content.pm.ActivityInfo
import android.content.pm.PackageManager
import com.ddz.library.JKLibrary

object JKActivityUtils {
    fun getAllActivityInfo(packageName:String?):Array<ActivityInfo>?{
        if (packageName.isNullOrBlank())return null
        val packageInfo = JKLibrary.context?.packageManager?.getPackageInfo(packageName,PackageManager.GET_ACTIVITIES)
        return packageInfo?.activities
    }
}